package com.cvit.cn.dao;

import com.cvit.cn.bean.ReleaseInformation;
import com.cvit.cn.bean.ReleaseInformationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ReleaseInformationMapper {
    long countByExample(ReleaseInformationExample example);

    int deleteByExample(ReleaseInformationExample example);

    int deleteByPrimaryKey(String id);

    int insert(ReleaseInformation record);

    int insertSelective(ReleaseInformation record);

    List<ReleaseInformation> selectByExample(ReleaseInformationExample example);

    ReleaseInformation selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") ReleaseInformation record, @Param("example") ReleaseInformationExample example);

    int updateByExample(@Param("record") ReleaseInformation record, @Param("example") ReleaseInformationExample example);

    int updateByPrimaryKeySelective(ReleaseInformation record);

    int updateByPrimaryKey(ReleaseInformation record);
    
    int updateReleaseInformationForQuoteType();
 
    
    //删除发布信息
	int delReleaseInformation(String[] ids);
	
	//查询发布信息
	List<ReleaseInformation> selectReleaseInformation();

	//假删除发布信息
	int delReleaseInformationFalse(String[] ids);

	List<ReleaseInformation> selectQuoteTypeBy(ReleaseInformationExample example);
	
	//根据quote_type=0查询查询已发布订单
	List<ReleaseInformation> selectQuoteTypeByZero(ReleaseInformationExample example);
	
	//根据quote_type=null查询查询未发布订单
	List<ReleaseInformation> selectQuoteTypeByNull(ReleaseInformationExample example);

	int updateId(ReleaseInformation ri);

	List<ReleaseInformation> seleTest(ReleaseInformationExample example);

	//根据订单id查开始时间和结束时间
	ReleaseInformation getReleaseIdTime(String id);

	//查未处理状态
	List<ReleaseInformation> getReleaseIdSupplierType(ReleaseInformationExample example);
	
	//查处理状态
	List<ReleaseInformation> getReleaseIdSupplierTypeOne(ReleaseInformationExample example);
	
}